export type TreeDataItemType = {
  title: string;
  key: string;
  children?: TreeDataType;
};

export type TreeDataType = TreeDataItemType[];

// 树的数据
const treeData = [
  {
    title: '总经办',
    key: '0',
    children: [
      {
        title: '项目审批',
        key: '1',
      },
    ],
  },
  {
    title: 'HR人事',
    key: '2',
    children: [
      {
        title: '员工休假',
        key: '3',
      },
      {
        title: '员工入职',
        key: '4',
      },
      {
        title: '招聘面试',
        key: '5',
      },
    ],
  },
  {
    title: '财务',
    key: '6',
    children: [
      {
        title: '采购类',
        key: '7',
      },
      {
        title: '报销类',
        key: '8',
      },
    ],
  },
];

export default treeData;
